﻿using System.Web;
using System.Web.UI;

namespace RabbitShop.Code
{
    public class Logic
    {
        public static void UpdateCookieCartNo(Page page, string cartNo)
        {
            HttpCookie cookie = page.Request.Cookies[Constant.CookieName];
            if (cookie != null)
            {
                cookie.Values[Constant.CookieCartNo] = cartNo;
                page.Response.AppendCookie(cookie);
            }
        }
    }
}